//
//  HtmlOperator.h
//  MarketDataColloctor
//
//  Created by jiro on 10/03/10.
//  Copyright 2010 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "HtmlCollector.h"
#import "HtmlInterpreter.h"
#import "../../DbTypes/DbTypes.h"

@interface HtmlOperator : NSObject {

	HtmlCollector* collector;
	
	HtmlInterpreter* interpreter;

	NSString* saveFolder;

	MarketData::Type marketDataType;

	NSMutableString* errorMessage;

}

@property( assign ) NSMutableString* errorMessage;

@property( assign ) NSString* saveFolder;

- (id) initWithSaveFolder: (NSString*) saveFolder;

- (BOOL) save;

- (NSArray*) createInsertSqlStatements: (DbTableEntryList*) list
	toDate: (NSDate*) latestDate
	lastDate: (NSDate**) lastDate;

@end
